package com.ctsi.security.domain;

import java.util.ArrayList;
import java.util.List;

public class PermisionTypeProcess {
	String thisType;
	List<PermisionTypeProcess> next = new ArrayList<>();
	PermisionTypeProcess lastNode;
	String inExtends;
	String lastId;
	
	public String getThisType() {
		return thisType;
	}
	public void setThisType(String thisType) {
		this.thisType = thisType;
	}
	public List<PermisionTypeProcess> getNext() {
		return next;
	}
	public void setNext(List<PermisionTypeProcess> next) {
		this.next = next;
	}
	public String getInExtends() {
		return inExtends;
	}
	public void setInExtends(String inExtends) {
		this.inExtends = inExtends;
	}
	public String getLastId() {
		return lastId;
	}
	public void setLastId(String lastId) {
		this.lastId = lastId;
	}
	
	public PermisionTypeProcess createChild(String thisT){
		PermisionTypeProcess temp = new PermisionTypeProcess();
		temp.setLastId(lastId);
		temp.setInExtends(inExtends);
		temp.setThisType(thisT);
		temp.setLastNode(this);
		next.add(temp);
		return temp;
	}
	public PermisionTypeProcess getLastNode() {
		return lastNode;
	}
	public void setLastNode(PermisionTypeProcess lastNode) {
		this.lastNode = lastNode;
	}


}
